<html>
<head>
  <title>Admin: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>
</head>
<body>
  <div>
    <%= @page_title || "Administer Bookshelf" %>
  </div>
  <div>
    <div>
      <% if session[:user_id] %>
      <%= link_to("Products", :controller=>"admin", :action=>"list") %><br/>
      <%= link_to("Shipping", :controller=>"admin", :action=>"ship") %><br/>
      <%= link_to("Add User", :controller=>"login", :action=>"add_user") %><br/>
      <%= link_to("Log out" , :controller=>"login", :action=>"logout") %><br/>
      <% end %>
    </div>
  </div>

<p style="color: green"><%= flash[:notice] %></p>

<%= yield  %>

</body>
</html>
